<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>8 模板语法-指令</title>
    <script src="js/vue.global.js"></script>
</head>
<body>
<div id="app">
    <runoob-a></runoob-a>
</div>
<script>

    var runoobA = {
        template: '<h1>自定义组件!</h1>'
    }

    const app = Vue.createApp({
        components: {
            'runoob-a': runoobA
        }
    })

    app.mount('#app')
</script>
</body>
</html>